#!/bin/sh

USER="user"
PROJECT_DIR="/path/to/project/dir"
. /path/to/virtualenv/bin/activate

cd $PROJECT_DIR
exec setuidgid $USER ./manage.py \
    runfcgi \
    method=prefork \
    daemonize=False \
    host=127.0.0.1 \
    port=8888 \
    maxrequests=500
